package cn.lcsjsxy.yxz.permissionmodifications.Permissionmodifications1;

import cn.lcsjsxy.yxz.permissionmodifications.Order;

public class SubOrder  extends Order{

    public void method(){
        orderProtected = 1;
        orderPublic = 2;

        methodProtected();
        methodPublic();

        //在不同包的子类中，不能调用Order类中声明为private和缺省权限的属性、方法
        /*orderDefault = 3;
        orderPrivate = 4;

        methodDefault();
        methodPrivate();*/
    }








}
